package com.nuanshui.heatedloan.userinfo.dal.mapper;

import com.nuanshui.heatedloan.userinfo.model.UserAuth;
import org.apache.ibatis.annotations.Param;


public interface UserAuthMapper {
	/**
	 * 更新用户的某个权限
	 * @param type
	 * @param value
	 */
    void updateUserOperationAuth(@Param("type") String type, @Param("value") Integer value, @Param("userId") String userId);
	
	UserAuth get(String id);

	void save(UserAuth userAuth);

	Long getUserAuth(@Param("userId") String userId);

	void updateUserAuth(@Param("userId") String userId, @Param("auth") Long auth);
}
